package com.movecar.dialog;

import BLLocationCallbacker.DialogItemSelectCallbacker;
import android.app.AlertDialog;
import android.content.Context;

import com.movecar.R;

public class MoveCarDialogBuilder {

	public static AlertDialog buildDialog(final Context context, final CharSequence title,
			final DialogItemSelectCallbacker listener) {
		return MoveCarDialogBuilder.buildDialog(context, title, null, listener);
	}

	public static AlertDialog buildDialog(final Context context, final CharSequence title, final CharSequence message,
			final DialogItemSelectCallbacker listener) {
		return new AlertDialog.Builder(context).setTitle(title).setMessage(message).setPositiveButton("确定", listener)
				.setNegativeButton("取消", listener).create();
	}

	public static AlertDialog buidlListDialog(final Context context, final CharSequence title,
			final CharSequence[] items, final DialogItemSelectCallbacker listener) {
		return MoveCarDialogBuilder.buidlListDialog(context, title, null, items, listener);
	}

	public static AlertDialog buidlListDialog(final Context context, final CharSequence title,
			final CharSequence message, final CharSequence[] items, final DialogItemSelectCallbacker listener) {
		return new AlertDialog.Builder(context,R.style.NobackDialog).setTitle(title).setMessage(message).setItems(items, listener).create();
	}
}
